<?php

namespace user\Controller;

class LogoutController extends UserAppController
{

    public function beforeFilter(){
    }

    public function indexAction()
    {
        $this->logout();
    }

    private function logout(){
        $this->Session->delete('authe');
        $this->Session->delete('tmp');
        $this->redirect(array('url' => $this->getUrl()));
        return false;
    }

}